<!doctype html>
<html>
<head>
  <title>demo</title>
  <meta charset="utf-8"/>
  <link rel=stylesheet href="lib/codemirror.css">
  <link rel=stylesheet href="doc/docs.css">
  <script src="lib/codemirror.js"></script>
  <script src="mode/xml/xml.js"></script>
  <script src="mode/javascript/javascript.js"></script>
  <script src="mode/css/css.js"></script>
  <script src="mode/htmlmixed/htmlmixed.js"></script>
  <script src="addon/edit/matchbrackets.js"></script>
  <script src="doc/activebookmark.js"></script>
</head>
<body>
    <div id="code-wrapper">
      <h2>This is CodeMirror</h2>
      <form style="position: relative; margin-top: .5em;"><textarea id=demotext>
      <!-- Create a simple CodeMirror instance -->
     <link rel="stylesheet" href="lib/codemirror.css">

    <script src="lib/codemirror.js"></script>
    <script>
      var editor = CodeMirror.fromTextArea(myTextarea, {
        mode: "c++"
      });
    </script></textarea>
      
      <script>
        var editor = CodeMirror.fromTextArea(document.getElementById("demotext"), {
          lineNumbers: true,
          mode: "c++",
          matchBrackets: true
        });
      </script>
    </div>
</body>
</html>


